const LocalStrategy = require('passport-local').Strategy

module.exports = new LocalStrategy(function(username, password, done) {
    if (username == 'zhang' && password == '123') {
        return done(null, { username, password })
    } else {
        return done(null, false, { error: 'wrong username or wrong password' })
    }
})
